The previous article describes the packaging format of the PES header, this article describes the packet format of the TS package
1.TS Baotou Format
The TS Stream, the transport stream, is a further encapsulation of the PES package, the base unit is TS Packet, fixed a packet size of 188 bytes (or 204 bytes, plus 16 b
This article introduces the differences between ts-based vc6 and vc9 compiling versions in PHP. For more information, see
Differences between ts-based PHP and ts-vc6 and vc9-php Basics:
VC6: legacy Visual Studio 6 compiler, which is compiled using this compiler.VC9: Visual Studio 2008 compiler, which is compiled by Microsoft VS editor.Because apache.org only pro
The differences between ts-based PHP and the ETS version-vc6 and vc9 are described in detail. VC6: legacyVisualStudio6compiler, which is compiled using this compiler. VC9: VisualStudio2008compiler, which is compiled by Microsoft VS editor. Apache.org only provides VC6: legacy Visual Studio 6 compiler, which is compiled using this compiler.
VC9: Visual Studio 2008 compiler, which is compiled by Microsoft VS editor.
Because apache.org only provides the
Based on the definition and structure of each data in the previous article, the data is parsed as follows:
TS header definition:
Typedef struct ts_packet_header{Unsigned sync_byte: 8; // Synchronization Byte, fixed to 0x47, indicating a TS groupUnsigned transport_error_indicator: 1; // Transmission Error Code IndicatorUnsigned payload_unit_start_indicator: 1; // start indicator of the effective load unitUns
The simulation implements printf function output as follows, ' d ' output shaping, ' C ' output character type, ' s ' output string, other output in its own formmy_printf ("dc\ts\ndc\ndc\ts!", 1, ' B ', "Zhangweina", 2, ' I ', 3, ' t ', "Welcome to You");Some small knowledge of the mutable parameter list:Macro Stdard.hVa_list declaring a typeVa_start The first argument is the name of the va_list variable, a
During the internship did a TS code flow analysis of the project, summed up some knowledge, share to everyone, may have written errors and omissions, welcome correction 1. The relationship between TS 1.1 ts Flow and other flows
ES (Elementary Stream): Basic code flow, not segmented audio, video or other information of the continuous stream.
pes (packetized Eleme
I recently encountered a headache caused by the IsDB code stream issue. I have found a lot of relevant materials to learn. The following is an excerpt from the Internet:
It should be said that after truly understanding TS and reading the book "digital TV business information and coding" recommended by friends, MPEG2 TS and digital TV are closely inseparable, it is worth summarizing some of these relationsh
It should be said that after truly understanding TS and reading the book "digital TV business information and coding" recommended by friends, MPEG2 TS and digital TV are closely inseparable, it is worth summarizing some of these relationships.
ISO/IEC-13818-1: System Section; ISO/IEC-13818-2: Video; ISO/IEC-13818-3: audio; ISO/IEC-13818-4: conformance testing; ISO/IEC-13818-5: Software section; ISO/IEC-1381
Prior to the establishment of Isma, the active image expert group defined the reuse of one or more audio, video, and data element streams when developing MPEG-2 system standards
Method, MEPG-2 standards were officially released in November 1994. The data stream is packaged with a time mark to form a encapsulated element stream (PES ). Audio
, Video and data (optional) PES are reused together to form a single output stream that can store and transmit applications. MPEG-2 system standards are desi
passes through the PES packager, it is converted into a PES package . The PES package consists of Baotou and payload , and the specific format is summarized as follows:You can see that Pts/dts is in the PES package , these two parameters is the key to solve the video-audio synchronization display, to prevent the decoder input cache overflow or underflow.PTS indicatesDisplay Unitappear inSystem Target Decoder(Std:system target decoder), DTS represents the timeAccess UnitAll bytestime to remove f
Statement 1:
Although Isma and MPEG-2 ts over IP can be used for IPTV stream transmission, but due to the Mechanism and the original intention of different standards, there are some differences in IPTV service support, the specific analysis is as follows:
1. Support for business functions
Isma currently supports MPEG-4 and H.264 and does not support other encoding standards. As video and audio streams are transmitted separately, Isma provides more fle
1. It should be said that the real understanding of TS, or to see a friend recommended "digital television business information and its code" after the book, MPEG2 TS and digital television is closely inseparable, it is worth summing up some of the relationship.
Iso/iec-13818-1: System part;Iso/iec-13818-2: Video;Iso/iec-13818-3: Audio;ISO/IEC-13818-4: Conformance testing;ISO/IEC-13818-5: So
Live broadcasting: The existing Isma method. The process is as follows:
Video collection-> video encoding-> RTP packaging-> UDP multicast;
Audio collection-> Audio Encoding-> RTP packaging-> UDP multicast;
The above is the workflow of mp4live.
Live Video: mpeg ts stream mode. The process is as follows:
Video collection --> video encoding -->
Audio collection> Audio Encoding> TS packaging> RTP packaging> UDP
In MPEG-II standards, in order to combine one or more audio, video, or other basic data streams into one or more data streams for storage and transfer, it must be re-packaged and encoded. In the code stream, it also needs to insert various time tags, system control and other information, and finally sent to the channel encoding and modulation. In this way, two types of data streams, TS and PS, can be formed, which are suitable for different applicatio
FFmpeg Analysis of MPEG2 TS Stream decoding process [2]
5. Get betterWell, the previous foundation is nearly enough. It's a bit like a hand-peeled onion. Let's take a look at the aspect of MPEG ts.Resolution Process
The code behind us is mainly concentrated in [libavformat/mpegts. C]. Grandpa Mao said: concentrated strengthWei Jie, well, let's get started, ant's nest.
Static int mpegts_read_header (avformatcontext * s,Avformatparameters * AP){Mpegtsco
Stream (program stream) PS Flow consists of PS package, and a PS package is made up of several PES packages (here, ES through the two-layer package). The packet header of the PS package contains synchronization information and clock recovery information. A PS package can contain up to 16 video PES packages and 32 audio PES packages with the same 1: benchmark.
Ts:
The Ts--transport stream (the transport Str
TS is all called mpeg2-ts, the abbreviation for "Transport Stream". The mpeg2-ts format is characterized by the requirement to decode independently from any segment of the video stream. Some website video is the TS format, the user downloads to the local need to carry on the processing to the file.How do I never downlo
**************************************** **************************************** ********************I. Ts Encapsulation1. IntroductionMPEG2 transport stream (TS Stream) is a data stream defined according to the ITU-T Rec. h.222.0 | ISO/IEC 13818-1 protocol.To transfer and store the encoding data of one or more programs in an environment where serious errors may occur.
(1) Es-elementary Streams (Original stream), the encoding of video, audio signals and other data is compressed into the data stream called the original stream. The original stream includes the access unit, such as the video source stream's access unit is a pair of image encoding data.
(2) Pes-packetized Elementary Streams (the original stream of the group), the grouping of the original stream is called the PES grouping, is a data structure used to transmit the original flow
(3) The program is a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.